package main

import (
	"fmt"
	"log"
	"sort"
)

func main() {
	//var 切片名 []切片值的类型
	var numbers []float64
	numbers = append(numbers, 3.0)
	numbers = append(numbers, 2.0)
	numbers = append(numbers, 4.0)
	fmt.Println(numbers)   //[3 2 4]
	sort.Float64s(numbers) //将其中的切片升序
	fmt.Println(numbers)   //[2 3 4]
	log.Println(numbers)
}
